package com.mianyang.zhangsan.common.util;

import java.util.Random;

/**
 * @author jiangjr
 * @date 2022-12-03
 */
public class RandUtils {
    private static final Random RANDOM = new Random();

    public static Integer range(Integer start, Integer end) {
        return RANDOM.nextInt(end) + start;
    }

    public static Integer max(Integer max) {
        return RANDOM.nextInt(max);
    }

    public static void main(String[] args) {
        System.out.println(range(1, 1));
    }
}
